home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Champak 140
/
(Vol 140) Sep 19 2011.iso
/
Games
/
mardek_rpg.swf
/
scripts
/
frame_46
/
DoAction.as
Wrap
Text File
|
2011-09-19
|
8KB
|
188 lines
function §\x01\x02§()
{
return 2659 % 511 * 5;
}
var §\x01§ = -162 + "\x01\x02"();
while(true)
{
if(eval("\x01") == 358)
{
set("\x01",eval("\x01") - 340);
§§push(true);
}
else if(eval("\x01") == 718)
{
set("\x01",eval("\x01") + 178);
}
else if(eval("\x01") == 209)
{
set("\x01",eval("\x01") + 97);
§§push("\x0f");
}
else if(eval("\x01") == 113)
{
set("\x01",eval("\x01") + 351);
}
else if(eval("\x01") == 937)
{
set("\x01",eval("\x01") - 240);
§§push(!function §\x01\x02§()
{
return 2659 % 511 * 5;
});
}
else if(eval("\x01") == 896)
{
set("\x01",eval("\x01") - 433);
§§push("\x0f");
§§push(1);
}
else if(eval("\x01") == 463)
{
set("\x01",eval("\x01") - 254);
var §§pop() = function §\x01\x02§()
{
return 2659 % 511 * 5;
};
}
else if(eval("\x01") == 697)
{
set("\x01",eval("\x01") - 584);
if(function §\x01\x02§()
{
return 2659 % 511 * 5;
})
{
set("\x01",eval("\x01") + 351);
}
}
else if(eval("\x01") == 306)
{
set("\x01",eval("\x01") + 631);
§§push(eval(function §\x01\x02§()
{
return 2659 % 511 * 5;
}));
}
else if(eval("\x01") == 4)
{
set("\x01",eval("\x01") + 892);
}
else
{
if(eval("\x01") == 464)
{
set("\x01",eval("\x01") + 278);
map = [[1,1,1,1,1,2,2,2,1,1,1,1,1],[1,1,1,1,2,7,6,8,2,1,1,1,1],[1,1,1,2,12,7,6,8,12,2,1,1,1],[1,1,1,12,0,7,6,8,0,12,1,1,1],[2,4,2,0,0,7,6,8,0,0,2,4,2],[3,3,3,5,5,9,11,10,5,5,3,3,3],[0,0,0,0,0,7,6,8,0,0,0,0,0],[0,0,0,0,0,7,6,8,0,0,0,0,0],[0,13,0,0,0,7,6,8,0,0,0,13,0],[0,0,0,0,0,7,6,8,0,0,0,0,0],[0,0,0,0,0,7,6,8,0,0,0,0,0],[0,0,0,0,0,7,6,8,0,0,0,0,0],[0,13,0,0,0,7,6,8,0,0,0,13,0],[0,0,0,0,0,7,6,8,0,0,0,0,0],[0,0,0,0,0,7,6,8,0,0,0,0,0],[1,1,1,0,0,7,6,8,0,0,1,1,1],[1,1,1,1,0,7,6,8,0,1,1,1,1],[1,1,1,1,1,7,6,8,1,1,1,1,1],[1,1,1,1,1,7,6,8,1,1,1,1,1],[1,1,1,1,1,7,6,8,1,1,1,1,1]];
tileset = "t_castle";
area = "gc_ThroneRoom";
areaname = "Castle Goznor - Throne Room";
ambience = null;
A_sprites = [{name:"Throne",model:"s_object",x:6,y:3,type:"throne",conv:[["","It\'s a throne. Exciting."]]},{name:"Rosencrantz",model:"s_soldier",x:4,y:3,walkspeed:-1,dir:"s",elem:"LIGHT",conv:[["","..."]]},{name:"Guildenstern",model:"s_soldier",x:8,y:3,walkspeed:-1,dir:"s",elem:"LIGHT",conv:[["","..."]]},{name:"King",model:"s_king",x:6,y:3,walkspeed:-2,dir:"s",elem:"FIRE",conv:"c_king"},{name:"Crystal Room",model:"DOOR10",x:6,y:0,lock:"magic",dest:["gc_CrystalRoom",1,1]},{name:"King\'s Room",model:"DOOR10",x:1,y:5,lock:"lock",dest:["gc_KingsRoom",8,1]},{name:"Room",model:"DOOR10",x:11,y:5,lock:"lock",dest:["gc_QueensRoom",8,1]},{name:"EXIT",model:"DOOR10",x:6,y:20,dest:["gc_hall",10,1]}];
if(plotVars.BRIEFING == 4)
{
A_sprites.push({name:"WALK_TRIGGER",model:"_trigger",x:6,y:10,ExecuteScript:function()
{
if(_root.plotVars.walkedIntoKing1 == null)
{
_root.plotVars.walkedIntoKing1 = 1;
DO_ACTIONS([["WALK",0,-3],["UNFREEZE"]],"PC",true);
DO_ACTIONS([["RUN",0,-3],["UNFREEZE"]],"Deugan",true);
DO_ACTIONS([["RUN",0,-3],["UNFREEZE"]],"Emela",true);
DO_ACTIONS([["RUN",0,-3],["UNFREEZE"]],"Sharla",true);
DO_ACTIONS([["RUN",0,-3],["UNFREEZE"]],"Donovan",true);
}
}});
A_sprites.push({name:"INTERJECTION",model:"_trigger",x:6,y:7,ExecuteScript:function()
{
_root.Interjection("Mardek","Briefing4","c_king");
}});
A_sprites.push({name:"Jacques",model:"s_captain",x:5,y:3,walkspeed:-1,dir:"s",elem:"AIR",conv:"c_jacques"});
A_sprites.push({name:"Emela",model:"s_emela_soldier",x:4,y:10,walkspeed:-1,dir:"n",elem:"WATER",conv:[["shok","ERROR!"]]});
A_sprites.push({name:"Deugan",model:"s_deugan_soldier",x:5,y:10,walkspeed:-1,dir:"n",elem:"EARTH",conv:[["shok","ERROR!"]]});
A_sprites.push({name:"Donovan",model:"s_donovan_soldier",x:7,y:10,walkspeed:-1,dir:"n",elem:"FIRE",conv:[["shok","ERROR!"]]});
A_sprites.push({name:"Sharla",model:"s_sharla_soldier",x:8,y:10,walkspeed:-1,dir:"n",elem:"AIR",conv:[["shok","ERROR!"]]});
}
if(plotVars.MORIC_BEATEN == 2 || plotVars.MORIC_BEATEN == 99)
{
A_sprites.push({name:"WALK_TRIGGER",model:"_trigger",x:6,y:10,ExecuteScript:function()
{
if(_root.plotVars.walkedIntoKing2 == null)
{
_root.plotVars.walkedIntoKing2 = 1;
DO_ACTIONS([["WALK",0,-3],["UNFREEZE"],["TALK","n","c_king"]],"PC",true);
DO_ACTIONS([["RUN",0,-3],["UNFREEZE"]],"Deugan",true);
DO_ACTIONS([["RUN",0,-3],["UNFREEZE"]],"Emela",true);
DO_ACTIONS([["RUN",0,-3],["UNFREEZE"]],"Zach",true);
DO_ACTIONS([["RUN",0,-3],["UNFREEZE"]],"Vehrn",true);
}
}});
if(plotVars.MORIC_BEATEN == 2)
{
A_sprites.push({name:"INTERJECTION",model:"_trigger",x:6,y:7,ExecuteScript:function()
{
_root.Interjection("Mardek","Briefing_AfterMoric1K1","c_king");
}});
}
else
{
A_sprites.push({name:"INTERJECTION",model:"_trigger",x:6,y:7,ExecuteScript:function()
{
_root.Interjection("Mardek","Briefing_AfterMoric1K2","c_king");
}});
}
A_sprites.push({name:"Jacques",model:"s_captain",x:5,y:3,walkspeed:-1,dir:"s",elem:"AIR",conv:"c_jacques"});
A_sprites.push({name:"Emela",model:"s_emela_soldier",x:7,y:10,walkspeed:-1,dir:"n",elem:"WATER",conv:[["shok","ERROR!"]]});
if(plotVars.MORIC_BEATEN != 99)
{
A_sprites.push({name:"Deugan",model:"s_deugan_soldier",x:5,y:10,walkspeed:-1,dir:"n",elem:"EARTH",conv:[["shok","ERROR!"]]});
}
if(plotVars.Allies.Vehrn != null)
{
A_sprites.push({name:"Vehrn",model:"s_vehrn",x:(plotVars.MORIC_BEATEN == 99 ? 5 : 4),y:10,walkspeed:-1,dir:"n",elem:"LIGHT",conv:[["shok","ERROR!"]]});
}
if(plotVars.Allies.Zach != null)
{
A_sprites.push({name:"Zach",model:"s_zach",x:8,y:10,walkspeed:-1,dir:"n",elem:"AIR",conv:[["shok","ERROR!"]]});
}
}
areaLoot = [];
foes = [];
btlChance = 0;
minSteps = 5;
levelrange = [1,1];
musicTrack = "Castle";
clearmap = 1;
AreaSetup();
break;
}
if(eval("\x01") == 742)
{
set("\x01",eval("\x01") - 742);
break;
}
if(eval("\x01") != 18)
{
if(eval("\x01") == 994)
{
set("\x01",eval("\x01") - 990);
var §§pop() instanceof new §§pop()[function §\x01\x02§()
{
return 2659 % 511 * 5;
}]();
§§push(new §§pop()[§§pop() instanceof §§pop()]());
break;
}
break;
}
set("\x01",eval("\x01") + 976);
if(function §\x01\x02§()
{
return 2659 % 511 * 5;
})
{
set("\x01",eval("\x01") - 990);
}
}
}